home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d18
/
turbotut.arc
/
ARRAYS.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1989-06-30
|
412b
|
17 lines
PROGRAM simple_arrays;
VAR count,index : INTEGER;
automobiles : ARRAY[1..12] OF INTEGER;
BEGIN
FOR index := 1 TO 12 DO
automobiles[index] := index + 10;
WRITELN('This is the first program with an array');
WRITELN;
FOR index := 1 TO 12 DO
WRITELN('automobile number',index:3,' has the value',
automobiles[index]:4);
WRITELN;
WRITELN('End of program');
END.